package com.example.yunJie.digitalSentry.service.impl;

import com.example.yunJie.digitalSentry.entity.VehiclebasicEntity;
import com.example.yunJie.digitalSentry.mapper.one.VehiclebasicMapper;
import com.example.yunJie.digitalSentry.service.VehiclebasicService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class VehiclebasicServiceImpl implements VehiclebasicService {

    private final VehiclebasicMapper vehiclebasicMapper;

    @Override
    public int insert(VehiclebasicEntity vehiclebasicEntity) {
        return vehiclebasicMapper.insert(vehiclebasicEntity);
    }

    @Override
    public int update(VehiclebasicEntity vehiclebasicEntity) {
        return vehiclebasicMapper.update(vehiclebasicEntity);
    }

    @Override
    public int deleteById(String id) {
        return vehiclebasicMapper.deleteById(id);
    }

    @Override
    public int deleteIdList(List<Integer> idList) {
        return vehiclebasicMapper.deleteIdList(idList);
    }

    @Override
    public VehiclebasicEntity findId(String id) {
        return vehiclebasicMapper.findId(id);
    }

    @Override
    public List<VehiclebasicEntity> findAll(VehiclebasicEntity vehiclebasicEntity) {
        return vehiclebasicMapper.findAll(vehiclebasicEntity);
    }

    @Override
    public List<VehiclebasicEntity> findList() {
        return vehiclebasicMapper.findList();
    }
}
